package jk.zmn.socket.tcp.demo3;

import java.io.Closeable;
import java.io.IOException;

/**
 * @author 张梦楠
 * @Title: ${file_name}
 * @Package ${package_name}
 * @Description: ${todo}
 * @date 2018/5/3119:06
 * @blog www.itzmn.com
 */
public class CloseUtils {

    public static void CloseAll(Closeable... T){
        for (Closeable f : T){
            if (f!=null){
                try {
                    f.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
